package com.xiaoyu.base.event;

public class BaseEventWithTag extends BaseEvent {

    public final Object mRequestTag;

    public BaseEventWithTag(Object requestTag) {
        this.mRequestTag = requestTag;
    }

    public boolean isNotFromThisRequestTag(Object requestTag) {
        if (mRequestTag == requestTag) {
            return false;
        }
        return mRequestTag == null || !mRequestTag.equals(requestTag);
    }
}
